package demo7;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
@SuppressWarnings({"all"})
public class Test {
    public static void main(String[] args){
        try(Writer writer = new FileWriter("d:/test.txt",true)){
            writer.write("我正在学习这个文件的相关的操作！！！");
        }catch(IOException e){
            e.printStackTrace();
        }
    }
}
